﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Models;
using DAL;

namespace BLL
{
    

    public class GoodsBll
    {
        //根据搜索关键字进行查询
        public static List<Goods> getBykeyBLL(string key)
        {
            return GoodsDAL.getBykeyDAL(key);
        }
        //根据类型id查询前8条数据
        public static List<Goods> getBytyIdBLL(int tyID)
        {
            return GoodsDAL.getBytyIdDAL(tyID);
        }
        //根据商品ID查询单个信息
        public static Goods getByIDBLL(int GoodsID)
        {
            return GoodsDAL.getByIDDAL(GoodsID);
        }
        //获取前十条数据
        public static List<Goods> getAllBLL()
        {
            return GoodsDAL.getAllDAl();
        }
    }
}
